﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace SharePointWiki
{
    public partial class Password : Form
    {
        public delegate void PasswordSetHandler(string password);
        public event PasswordSetHandler OnPasswordSet;

        public Password()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (OnPasswordSet == null) return;
              OnPasswordSet(txt_password.Text);

            this.Close();
            this.Dispose();
        }
    }
}
